// 栏目
import request from '../utils/request'

// 1. 获取栏目数据
export const getCategoryAPI = () => {
  return request({
    url: '/category',
  })
}

// 2. 添加栏目
export const addCategoryAPI = (data) => {
  return request({
    method: 'POST',
    url: '/category',
    data: data,
  })
}
